﻿using PaymentServiceFactory.Services.Interfaces;

namespace PaymentServiceFactory.Services.Implementations
{
    public class CreditCardPayment : IPaymentService
    {
        // 添加 orderId 作为方法参数
        public Task<string> ProcessPayment(string orderId, decimal amount)
        {
            // 模拟异步操作
            return Task.FromResult($"信用卡支付处理成功! 订单: {orderId}, 金额: ${amount}");
        }
    }
}
